passing values from a perl-script to a shell-script

passing values from a perl-script to a shell-script

am 19.01.2007 04:51:36 von ukhas jean

--===============1696934286==
Content-Type: multipart/alternative; boundary="0-68475254-1169178696=:35823"
Content-Transfer-Encoding: 7bit

--0-68475254-1169178696=:35823
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Morning All,
=20
I have been beating round the bush for some time ... just thought tht a=
sking the experienced people would help. Hence Posting this mail.
=20
I have a perl script called "a.pl" on a unix machine and i also have a =
shell script called "get.sh" on the same machine. Now "get.sh" prompts th=
e user to answer many questions ... so i wanted to create a perlscript "a=
..pl" that would enter fixed-values for these questions. i.e. "a.pl" woul=
d be a wrapper script of "get.sh".
=20
My question:- How do i pass these fixed-values from "a.pl" to "get.sh"?=
??
=20
Best,
Ukh

=20
---------------------------------
No need to miss a message. Get email on-the-go=20
with Yahoo! Mail for Mobile. Get started.
--0-68475254-1169178696=:35823
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Morning All,
 
I have been beating roun=
d the bush for some time ... just thought tht asking the experi=
enced people would help. Hence Posting this mail.
  >
I have a perl script called "a.pl" on a unix mac=
hine and i also have a shell script called "get.sh" on t=
he same machine. Now "get.sh" prompts the user to a=
nswer many questions ... so i wanted to create a perlscript "a.pl=
" that  would enter fixed-values for these questi=
ons. i.e. "a.pl" would be a wrapper script of "g=
et.sh".
 
My quest=
ion:- How do i pass these fixed-values from "a.pl" to TRONG>"get.sh"???
 
Best,
iv>Ukh




No need to miss a message. /evt=3D43910/*http://mobile.yahoo.com/mail
">Get email on-the-go

with Yahoo! Mail for Mobile. p://us.rd.yahoo.com/evt=3D43910/*http://mobile.yahoo.com/mai l
">Get started.

--0-68475254-1169178696=:35823--

--===============1696934286==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1696934286==--

Re: passing values from a perl-script to a shell-script

am 19.01.2007 06:25:21 von ukhas jean

--===============1959753220==
Content-Type: multipart/alternative; boundary="0-646480836-1169184321=:48772"
Content-Transfer-Encoding: 7bit

--0-646480836-1169184321=:48772
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hello Bill et al,
=20
The arguments are as many as 20 to 25 ... a typo here or there could cr=
eate havoc ... get.sh is a widely used script ... it takes of many things=
in the workflow here but ... the parameter no. is huge ... but the sad p=
art is the workflow still requires these parameters !!!
=20
is there no way we can pass a value from perl to a shell-script???=20
=20
Best,
Ukh

Bill Luebkert wrote:
ukhas jean wrote:
> Morning All,
>=20
> I have been beating round the bush for some time ... just thought tht=20
> asking the experienced people would help. Hence Posting this mail.
>=20
> I have a perl script called *"a.pl"* on a unix machine and i also have =
a=20
> shell script called *"get.sh" *on the same machine. Now *"get.sh"*=20
> prompts the user to answer many questions ... so i wanted to create a=20
> perlscript *"a.pl*" that would enter fixed-values for these questions.=20
> i.e. *"a.pl"* would be a wrapper script of "*get.sh".*
> **=20
> My question:- How do i pass these fixed-values from "*a.pl" *to=20
> *"get.sh"*???

If you can modify get.sh to check for ARGV parameters, you could
also just pass the args in on the commandline and bypass all the
hard stuff.

system "/some/path/get.sh arg1 arg2 arg3 arg4";


=20
---------------------------------
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
--0-646480836-1169184321=:48772
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hello Bill et al,
 
The arguments are a=
s many as 20 to 25 ... a typo here or there could create havoc ... get.sh=
is a widely used script ... it takes of many things in the workflow here=
but ... the parameter no. is huge ... but the sad part is the workflow s=
till requires these parameters !!!
 
is ther=
e no way we can pass a value from perl to a shell-script???
=
 
Best,
Ukh

Bill Luebkert <d=
becoll@roadrunner.com>
wrote:
q style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px =
solid">ukhas jean wrote:
> Morning All,
>
> I have bee=
n beating round the bush for some time ... just thought tht
> aski=
ng the experienced people would help. Hence Posting this mail.
> R>> I have a perl script called *"a.pl"* on a unix machine and i also =
have a
> shell script called
*"get.sh" *on the same machine. Now *"get.sh"*
> prompts the user=
to answer many questions ... so i wanted to create a
> perlscript=
*"a.pl*" that would enter fixed-values for these questions.
> i.e=
.. *"a.pl"* would be a wrapper script of "*get.sh".*
> **
> M=
y question:- How do i pass these fixed-values from "*a.pl" *to
> *=
"get.sh"*???

If you can modify get.sh to check for ARGV parameters=
, you could
also just pass the args in on the commandline and bypass a=
ll the
hard stuff.

system "/some/path/get.sh arg1 arg2 arg3 arg=
4";




TV dinner still cooling?
m/evt=3D49979/*http://tv.yahoo.com/">Check out "Tonight's Picks" on Y=
ahoo! TV.
--0-646480836-1169184321=:48772--

--===============1959753220==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1959753220==--

Re: passing values from a perl-script to a shell-script

am 20.01.2007 00:34:17 von David Totten

I can't think of a way to do what you'd like off the top of my head,
but you may be able to write an expect script. A quick search yeilded
a nice little article about expect.

http://www2.linuxjournal.com/article/3065

On 1/18/07, ukhas jean wrote:
> Hello Bill et al,
>
> The arguments are as many as 20 to 25 ... a typo here or there could create
> havoc ... get.sh is a widely used script ... it takes of many things in the
> workflow here but ... the parameter no. is huge ... but the sad part is the
> workflow still requires these parameters !!!
>
> is there no way we can pass a value from perl to a shell-script???
>
> Best,
> Ukh
>
> Bill Luebkert wrote:
> ukhas jean wrote:
> > Morning All,
> >
> > I have been beating round the bush for some time ... just thought tht
> > asking the experienced people would help. Hence Posting this mail.
> >
> > I have a perl script called *"a.pl"* on a unix machine and i also have a
> > shell script called *"get.sh" *on the same machine. Now *"get.sh"*
> > prompts the user to answer many questions ... so i wanted to create a
> > perlscript *"a.pl*" that would enter fixed-values for these questions.
> > i.e. *"a.pl"* would be a wrapper script of "*get.sh".*
> > **
> > My question:- How do i pass these fixed-values from "*a.pl" *to
> > *"get.sh"*???
>
> If you can modify get.sh to check for ARGV parameters, you could
> also just pass the args in on the commandline and bypass all the
> hard stuff.
>
> system "/some/path/get.sh arg1 arg2 arg3 arg4";
>
>
>
> ________________________________
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.
>
>
> _______________________________________________
> ActivePerl mailing list
> ActivePerl@listserv.ActiveState.com
> To unsubscribe:
> http://listserv.ActiveState.com/mailman/mysubs
>
>
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: passing values from a perl-script to a shell-script

am 22.01.2007 11:04:56 von Brian Raven

David Totten <> wrote:

[ reordered ]

> On 1/18/07, ukhas jean wrote:
>> Hello Bill et al,
>>
>> The arguments are as many as 20 to 25 ... a typo here or there could
>> create havoc ... get.sh is a widely used script ... it takes of many
>> things in the workflow here but ... the parameter no. is huge ... but
>> the sad part is the workflow still requires these parameters !!!
>>
>> is there no way we can pass a value from perl to a shell-script???
>>
>> Best,
>> Ukh
>>
>> Bill Luebkert wrote:
>> ukhas jean wrote:
>>> Morning All,
>>>
>>> I have been beating round the bush for some time ... just thought
>>> tht asking the experienced people would help. Hence Posting this
>>> mail.
>>>
>>> I have a perl script called *"a.pl"* on a unix machine and i also
>>> have a shell script called *"get.sh" *on the same machine. Now
>>> *"get.sh"* prompts the user to answer many questions ... so i wanted
>>> to create a perlscript *"a.pl*" that would enter fixed-values for
>>> these questions. i.e. *"a.pl"* would be a wrapper script of
>>> "*get.sh".* **
>>> My question:- How do i pass these fixed-values from "*a.pl" *to
>>> *"get.sh"*???
>>
>> If you can modify get.sh to check for ARGV parameters, you could also
>> just pass the args in on the commandline and bypass all the hard
>> stuff.
>>
>> system "/some/path/get.sh arg1 arg2 arg3 arg4";
>
> I can't think of a way to do what you'd like off the top of my head,
> but you may be able to write an expect script. A quick search yeilded
> a nice little article about expect.
>
> http://www2.linuxjournal.com/article/3065
>

Perfectly good advice. However, if you need/have to use Perl then it
might be worth looking at the Expect module.

See http://search.cpan.org/search?query=Expect&mode=all

HTH

--
Brian Raven

_________________________________________

The information contained in this e-mail is confidential and solely
for the intended addressee(s). Unauthorised reproduction, disclosure,
modification, and/or distribution of this email may be unlawful. If you
have received this email in error, please notify the sender immediately
and delete it from your system. The views expressed in this message
do not necessarily reflect those of Atos Euronext Market Solutions.
_________________________________________



=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately and delete it from your system. The views expressed in this message do not necessarily reflect those of Atos Euronext Market Solutions.

L'information contenue dans cet e-mail est confidentielle et uniquement destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail vous parvient par erreur, nous vous prions de bien vouloir prevenir l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre systeme. Le contenu de ce message electronique ne represente pas necessairement la position ou le point de vue d'Atos Euronext Market Solutions.

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs